package com.junzhiit.nengji.shop.dao.impl;

import org.springframework.stereotype.Repository;

import com.bainaeco.framework.base.dao.AbstractBaseDAO;
import com.bainaeco.framework.common.jdbc.StatementParameter;
import com.junzhiit.nengji.shop.dao.ShopInfoDAO;
import com.junzhiit.nengji.shop.model.ShopInfo;

@Repository
public class ShopInfoDAOImpl extends AbstractBaseDAO<ShopInfo> implements ShopInfoDAO {
	
	@Override
	public ShopInfo findByShopId(String shopId){
		StringBuffer sql=new StringBuffer();
		sql.append(" select * from shop_info");
		sql.append(" where shop_id=?");
		
		StatementParameter param=new StatementParameter();
		param.setString(shopId);
		
		return query(sql.toString(), ShopInfo.class, param);
		
	}

}
